<script setup lang="ts">

</script>

<template>
    <div class=" bg-#333 moni" @click.stop="() => {}">
    <div class="m-b-2em text-3xl loading-title">
      模拟体验加载中
    </div>
    <div class="loader">
      <div class="loader-square" />
      <div class="loader-square" />
      <div class="loader-square" />
      <div class="loader-square" />
      <div class="loader-square" />
      <div class="loader-square" />
      <div class="loader-square" />
    </div>
  </div>
 
</template>

<style lang="scss" scoped>
@media screen and (min-width:440px) {
  .moni {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}
@media screen and (max-width:440px) {
  .moni {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

.loading-title {
  font-family: title, sans-serif;
  font-size: 2em;
  color: white;
}

@keyframes square-animation {
  0% {
    top: 0;
    left: 0;
  }

  10.5% {
    top: 0;
    left: 0;
  }

  12.5% {
    top: 0;
    left: 32px;
  }

  23% {
    top: 0;
    left: 32px;
  }

  25% {
    top: 0;
    left: 64px;
  }

  35.5% {
    top: 0;
    left: 64px;
  }

  37.5% {
    top: 32px;
    left: 64px;
  }

  48% {
    top: 32px;
    left: 64px;
  }

  50% {
    top: 32px;
    left: 32px;
  }

  60.5% {
    top: 32px;
    left: 32px;
  }

  62.5% {
    top: 64px;
    left: 32px;
  }

  73% {
    top: 64px;
    left: 32px;
  }

  75% {
    top: 64px;
    left: 0;
  }

  85.5% {
    top: 64px;
    left: 0;
  }

  87.5% {
    top: 32px;
    left: 0;
  }

  98% {
    top: 32px;
    left: 0;
  }

  100% {
    top: 0;
    left: 0;
  }
}

.loader {
  position: relative;
  width: 96px;
  height: 96px;
  transform: rotate(45deg);
}

.loader-square {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin: 2px;
  background: white;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  border-radius: 0;
  animation: square-animation 10s ease-in-out infinite both;
}

.loader-square:nth-of-type(0) {
  animation-delay: 0s;
}

.loader-square:nth-of-type(1) {
  animation-delay: -1.4285714286s;
}

.loader-square:nth-of-type(2) {
  animation-delay: -2.8571428571s;
}

.loader-square:nth-of-type(3) {
  animation-delay: -4.2857142857s;
}

.loader-square:nth-of-type(4) {
  animation-delay: -5.7142857143s;
}

.loader-square:nth-of-type(5) {
  animation-delay: -7.1428571429s;
}

.loader-square:nth-of-type(6) {
  animation-delay: -8.5714285714s;
}

.loader-square:nth-of-type(7) {
  animation-delay: -10s;
}
</style>
